package com.linkzd.iot.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.linkzd.common.annotation.Excel;
import com.linkzd.common.core.domain.BaseEntity;

/**
 * 设备信息对象 device_info
 * 
 * @author ruoyi
 * @date 2024-05-18
 */
public class DeviceInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long deviceId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private String deviceCode;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Long deviceTypeId;

    /** 房间号 */
    @Excel(name = "房间号")
    private Long roomId;

    /** 设备种类 */
    @Excel(name = "设备种类")
    private Integer deviceVariety;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer deviceState;

    /** 设备数据 */
    @Excel(name = "设备数据")
    private String deviceData;

    private RoomInfo room;

    private DeviceType type;

    public Integer getDeviceVariety() {
        return deviceVariety;
    }

    public void setDeviceVariety(Integer deviceVariety) {
        this.deviceVariety = deviceVariety;
    }

    public RoomInfo getRoom() {
        return room;
    }

    public void setRoom(RoomInfo room) {
        this.room = room;
    }

    public DeviceType getType() {
        return type;
    }

    public void setType(DeviceType type) {
        this.type = type;
    }

    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }
    public void setDeviceTypeId(Long deviceTypeId) 
    {
        this.deviceTypeId = deviceTypeId;
    }

    public Long getDeviceTypeId() 
    {
        return deviceTypeId;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setDeviceState(Integer deviceState) 
    {
        this.deviceState = deviceState;
    }

    public Integer getDeviceState() 
    {
        return deviceState;
    }
    public void setDeviceData(String deviceData) 
    {
        this.deviceData = deviceData;
    }

    public String getDeviceData() 
    {
        return deviceData;
    }

    @Override
    public String toString() {
        return "DeviceInfo{" +
                "deviceId=" + deviceId +
                ", deviceCode='" + deviceCode + '\'' +
                ", deviceTypeId=" + deviceTypeId +
                ", roomId=" + roomId +
                ", deviceVariety=" + deviceVariety +
                ", deviceState=" + deviceState +
                ", deviceData='" + deviceData + '\'' +
                ", room=" + room +
                ", type=" + type +
                '}';
    }
}
